Sync with pthreads4w