Add a dirty trick for crosscompiling with mingw.