Fix up the Windows build

- mingw 32/64 - pass
- msvc 32/64 - pass
- msvc 32 LuaJIT - pass
- msvc 64 LuaJIT - builds but the unit tests crash