Add auto global ref-counted classes JObject and JClass.