Fix c-ares linker problem when WITH_SRV:=yes.

Fix dynamic linker problem when WITH_SRV is true in Mosquitto,
by linking to c-ares here.