create build env in mac os; replace LUA_GLOBALREGISTRY with lua_gettop
and lua_settop
support debug; add support to float, double;