Add net-dns/c-ares as dependency app-misc/mosquitto-1.3.1