use luaL_openlibs instead of luaopen_*, which also fixes some missing globals