fixes to luajit