Use Qt 4-compatible qmath.h header

The QtMath alias was apparently added with Qt 5.