Add genwrapper hook, that can be used to add code into the C wrapper.