Fixed compiling for Windows