fix message header allocation

fix wrong usage of operator new