Implement System.Process.createPipe operation

Neccesary for implementing 'tee' like behavior.

See

 - http://comments.gmane.org/gmane.comp.lang.haskell.libraries/21373
 - https://ghc.haskell.org/trac/ghc/ticket/8943

for more details.