Silenced deprecation warnings for refs #22811 and fixed build.