Replace lua_ref(st,TRUE) by luaL_ref(st, LUA_REGISTRYINDEX)
Replace lua_ref(st,TRUE) by luaL_ref(st, LUA_REGISTRYINDEX)

Both expressions are equivalent in Lua 5.1 by definition and Lua 5.2
does not include lua_ref anymore.

dkogan/notion.xfttest,dkogan/notion,p5n/notion,p5n/notion,anoduck/notion,dkogan/notion,neg-serg/notion,knixeur/notion,anoduck/notion,dkogan/notion.xfttest,dkogan/notion.xfttest,p5n/notion,raboof/notion,dkogan/notion.xfttest,knixeur/notion,raboof/notion,raboof/notion,dkogan/notion,anoduck/notion,neg-serg/notion,anoduck/notion,dkogan/notion,knixeur/notion,anoduck/notion,neg-serg/notion,p5n/notion,p5n/notion,knixeur/notion,raboof/notion,neg-serg/notion,knixeur/notion,dkogan/notion