Added compile flags to fix luajit issues