Fix MSVC error with virtual function.

Compilation error present with MSVC, OK with gcc.