add hooks for linking to the GHC patch