Correct spelling of function getMajorVersion

Corrected the name of the function and provide a proxy for backwards compatibility. Refs #4804