Fix for definitions module not being set when define_classes is not called.