Fixes in luajit and lua build