I'm resurrecting this pull-request by patvarilly, which is very important I think. (OSX users seems even more affected, see Issue #258)
The original pull/388 is not available anymore for unknown reasons (404). The first commit already had two ACKs. I added a similar change for DNS seeding.