Next round of code removal and header cleanup

None of this is used anywhere

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Compile without depending on the global MAX macro

There's a C++ way for it. And, for some reason, it wasn't defined on my
MinGW build:

qt-ui/profilegraphics.cpp:1006:57: error: 'MAX' was not declared in this sscope

Signed-off-by: Thiago Macieira <thiago@macieira.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>