cmake: do not check for Qt when BUILD_QJDNS is OFF