Add support to link against libresolv Mac OS X