octave: build gnuplot with Qt

Fixes #1275.