Add proper autotools checks for dnssd and avahi