fix win32 compile error because of the switch to mingw64