patch applied (cabal-branches/cabal-1.6): move imports outside ifdef GHC