Fix mingw cross compilation being broken by win32/win64 patches.