[Git][ghc/ghc][wip/angerman/ghci-ghc-9.8-compat] Conditionalize the ghc-internal dependency on the ghc version.