Made dns_sd non-Apple library.
Added sanity check for d2m_produce_reply.