Fixes SIGPIPE in iOS
merge