link with libresolv