fixed mingw64 for cross and local compile