Patch some of the class_exist calls