minor fixes in message.h to allow declaration of messages inside of namespace