added a thin layer for luajit support