fixed pthreads win32 bug