Fix for compiling Windows version with mingw