First shot at a code generator. Manages to coax out a replacement for hooked_functions.h