pipes.c: Replace fprintf with write + move declares around
pipes.c: merge conflict resolved