gtype: add type declaration macros for headers