adding condition variable compatibility with Windows