Add proper autotools checks for dnssd and avahi, prepare for new mdns code.