Fix pipe-mode test for mingw build