Get rid of 'virtual methods without virtual destructor' warning.