fix 64-bit mingw JIT compiles
some minor fixes to general headers