Add Railtie that respects lazy loading of libraries