use luaL_newstate() for lua5.2
get system name from lua