mark destructors of derived classes virtual, in unit_filter.cpp

This apparently produces msvc warnings if we don't do this.