Make sure nn::allocmsg() and (less usefully) nn::freemsg() return a valu...

The allocmsg() and freemsg() wrappers don't return a value, which is a bit of a problem for allocmsg().