Fix "isa deprecated, use object_setClass" warnings