cmake fixes for luajit