Problem: need to signal to zproto when using generated header

Otherwise zproto regenerates typedefs for opaque types, in message
and client codecs.

Solution: define macro when defining typedefs. Needs matching change
in zproto.