Merge subhook into internal code

This frees those who use the static library or amalgamation from the
need to link their code against subhook as both did not include it.