patch applied (cabal-branches/cabal-1.2): flush stdout before running subprograms