Get rid of qwt compile error about format string

Author: KURASHIKI Satoru <lurdan@gmail.com>

Included as a patch in the Debian build.
Fixing the code here at the source.