fix fedora build

added virtual destructor