fix building with cross-compiler mingw-w64