Added usleep function for windows.