Add virtual destructors for polymorphic types