use luaL_requiref for lua 5.2
update base.lua for lua 5.2