Add libdl support to dnssd.c for lazy linking