fixed warning for non-virtual destructors