get IPv6 with getifaddrs as well

Please review and test this patch on MacOSX  and other BSDs…
This should work.