Allow using MSG_NOSIGNAL to block SIGPIPE when HAVE_MSG_NOSIGNAL is

Allow using MSG_NOSIGNAL to block SIGPIPE when HAVE_MSG_NOSIGNAL is defined. This is useful if integrating libtask with autotools.