Add O_NONBLOCK support to pipes