cmake + pthreads library problems on Suse11

Hi, I recently tried to build Miktex-Tools on my Suse (it is needed to provide update utility to TexLive)
however it cannot compiled.
First there seems to be a problem with pthreads library.
I downgraded cmake to older version and problems seemed to solve but during compilation I got few errors.
I used the source on 10.3 and it worked fine.
Is it possible it is a bug in miktex sources?