Use the old `luaL_register` api for Lua 5.1.