Fix -Winconsistent-missing-override warnings.