patch applied (cabal-branches/cabal-1.6): Make getting ghc supported language extensions its own function