Patches to make LuaJIT works on Solaris x86_64