Added support for broadcast to multiple interfaces with getifaddrs