utils: remove Xfuncproto.h and use our own macros