Fix for compiling on windows