Correct lualib function return types
Generate LUA_CTXT from luaconf.h