OS X Compatibility
OSX Compatibility
Remove unused Sockpair
OS X compatibility: no sigpipe