Backport ToadKing - fix 64-bit mingw JIT compiles