added usleep implementation for win32

usleep is needed to build and run unittests on win32 platform.