Added support for lua_gc