$LDVERSION, which screws up the sym/hard-links. This avoids those games when $VERSION == $LDVERSION. Also, include a drive-by fix for an obvious syntax error.
the C code, using pipe2() when available. Adds unittests for close_fds and cloexec behaviors.