mingw: fix mingw_open_append to work with named pipes