Remove setsockopt for SIGPIPE; disable SIGPIPE via signal() on non-WIN32