patching tegh so it doesnt' error on osx when the network is down (mostly uesful for connecting to localhost).