Create _util.h

functions and macros used internally