Changes to fix compatability with texmath 0.7