Added a fix for fixed timestep on Windows