Ported more win32 threads to pthreads.
Porting more win32 threads to pthreads.