Some cleaning up of Qwt's MathML engine.