Add SO_NOSIGPIPE for iOS