Possible fix for running under Windows, thanks to MaxPowerz.