Adaptation of LuaJIT for our foundation lib based projects