Adding fixes for Qwt 6.1 to compile.