use __class for Lua 5.3; allow to set __metatable on objects