Fix luajit
Compiles and luajit executable passes tests found at https://github.com/LuaJIT/LuaJIT-test-cleanup (excluding some that appear to be related to the static build).
Compiled without W^X memory permission support because there appears to be some issue with the mprotect() call.