Fix warnings about overloaded virtuals.

-Werror build now works