Update check for libresolv on Darwin systems

Signed-off-by: Gregory Detal <gregory.detal@uclouvain.be>