Register new classes before adding/hooking methods on them