Compile fix for windows