Fix a bunch of buglets so the tester compiles.
We now have a cmath header.