Fix bind_sockets if OS does not support IPv6
Merge pull request #823 from schlamar/bind-sockets-ipv6

Fix bind_sockets if OS does not support IPv6