Add missing MessagePrinter class