Use Sleep() on Windows instead of usleep()