Create a hooks executable main given the package's SetupHooks.
The executable expects three command-line arguments:
A reference to an input communication handle (to read hook inputs from).
A reference to an output communication handle (to write hook outputs to).
The hook type to run.
The hook reads binary-encoded data from the input handle, runs the requested hook, and writes the binary-encoded result to the output handle.