Add a virtual destructor to a polymorphic struct