ignore signal SIGPIPE on Darwin

Fix for [#1784](https://github.com/Araq/Nim/issues/1784)