Change the signature of NewHeader() which takes MessageType parameter
Fix build error