Fix the Sleep function for Windows.