Compile time validation of MsgInfo_t layout.

Improved layout validation of MsgInfo_t and changed it to be at compile time.