add virtual destructor in base class message_format.hpp and removed three unused warnings