Changed library name for libdns_sd search, added error info

switched dlerror availability detection