Compilation fix with Qwt 6.1

This is a partial fix