Check availability of "struct sockaddr_storage"

Use "struct sockaddr_in6" or "struct sockaddr_in" on systems that don't
provide "struct sockaddr_storage".