added 'virtual' to overriden member function

this patch fixes an issue with an older clang version that throws
and error if 'override' is used without declaring the member function
'virtual'