Compatibility fix for Windows