refs #7957. Further fixes for old qwtplot versions.