Fix broken stuff so Rails preloading of classes in production can work.