Update util.c

Apple OS/X does not define MSG_NOSIGNAL.  Use SO_NOSIGPIPE instead
Merge pull request #429 from mhren/patch-1

Update util.c