[Lemon] Freaking fixes for the freaking Qwt 6.0.

Please tell somebody upstream about such things as backwards
compatibility or at least porting guide.