Restored custom base class functionality

This was removed in https://github.com/specta/specta/commit/e91c0f8a51df6158413efe4ac3582c8fe9e442e7. I've tested it in our own project, where we used it in Xcode 5, and it's working fine again with this change.