Fix build w/o DNSSD and Wunused-param