Fix CMake flags.
Adapt Qt to new autotools.
Add gitstats and gnuplot.