Added AI_ALL hint to getaddrinfo()

On Debian Squeeze systems, hostname lookup via getaddrinfo() was failing with
the error message "No address associated with hostname". Adding the AI_ALL fixes
this.