When allocating a new event, if the same name is used, no allocation is
created and NULL is returned. We start trying to use the returned value
which seg-faulted. I added a check to only continue if the returned value
from the allocation is not NULL.
refs #149
Missed a couple of files where message_publish is in an ifdef __APPLE__
section. But I decided to put message_type.h back in message_proto.h
because taking it out would affect a lot of user code.
Adds to #14.