Add pipe rewinding for IRIX

As reported by canavan in patch tracker item 3604015, the pipe-rewind
code for Windows also works on IRIX.