Add some compatibility defines to dnssd.c.

Original patch by S. Davilla from XBMC.