prefer pthread-semaphores (posix API) with mingw