Update util.c

Apple OS/X does not define MSG_NOSIGNAL.  Use SO_NOSIGPIPE instead