Use correct Sleep function on windows