move accept4, dup3, and pipe2 to non-linux-specific locations