ofxKinect ld.exe: cannot find -lpthread

Hi,

I am on Win7 x64 using Codeblocks 10.05, OF latest git master, ofxKinect latest git master.
When compling the ofxKinect example i get a linker error:

  
Linking console executable: bin\ofxKinectExample.exe  
c:/program files (x86)/codeblocks/share/codeblocks/mingw/bin/../lib/gcc/mingw32/4.5.1/../../../../mingw32/bin/ld.exe: cannot find -lpthread  

pthreadGC2.dll is located in C:\Windows\System32 and there is path variable set to System32.

can someone pls point me in the right direction?

i remembered that my codeblocks install was done more than a year ago. i had some problems with the supplied mingw and installed the latest compliler directly frome the web source. after a complete uninstall of CB and the mingw and a reinstall of the CB package that includes mingw, the ofxKinect sample compiles and links without problems.