Dnsmasq 2.66+sync

Wrapped the version bump and the port fixes into 2 commits, I guess some of the v6 stuff might be interesting for the future.