Fix Mac build.

Virtual methods needs to go in the cpp files (Chromium style).