Add proper autotools checks for dnssd and avahi, prepare for new mdns code.
Move dnssd out of the library