Update Lua API, convert SharePtr to raw pointer.