Remove use of depreciated `luaL_getn`

The function `luaL_getn` was depreciated in Lua 5.1 in favor for
`lua_objlen`.
Move from LuaJIT to Lua
Enable debug in p4est when bfam is using debug