Fix for sockaddr incompatibilities between Linux and FreeBSD.