Use sockaddr_in6 on FreeBSD

This is expected to fix build failure on Debian/kFreeBSD:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=754646

I could not test this commit on FreeBSD, but on Linux it does not break the build.