fixed non virtual destructor warnings