Make library set system dependent

For instance, FreeBSD doesn't need -lresolv, -ldl