a few fixes and shared_ptr
shader compile
favor Lua import/fix warning