Fix warning: include a virtual destructor when some functions are virtual.