Fix bind_sockets if OS does not support IPv6