Fix issue with new class registration when imported by Obj-C++ code