Fix win32 mingw build