Attempt to fix building with mingw.