Fixed compiling on windows