codegenerator can generate install_hooks() function.
Fixed codegenerator

Redirection macros must not have a semicolon at the end. This compiles,
but does absolutely not what we want. Added old "Hooking function blah"
messages.
Got rid of old hooked_functions.x xheader. install_hooks() is now generated by codegenerator.