Add missing include

MSP-9228

module_class_location was not defined because the include was missing.
Fix deprecation warnings

MSP-9228