server: add guard for SO_NOSIGPIPE, which lacks on e.g. CentOS 5