Move HOOK and UNHOOK macros to hookfns.h