Use luaL_newlib instead of constructing module table manually
Use luaL_setfuncs