Fix compilation on Mac.

Mac OS X doesn't have the |pipe2| system call.