Fix for populating default_ipv6 on BSD systems

The way default_ipv6 was populated on BSD systems probably never worked. This patch fixes that.

Verified working on
OpenBSD 5.1
FreeBSD 9.0
OSX 10.8