rrdtool: fix finding tcl
ganglia: fix compile and simplify

Closes #18047.