modifications for a (slightly patched) luajit