Rearrange includes to improve compile times.

This also allows for memory leak checking on MSVC by having include
surrounding Qt headers, which break if you have a macro define new
to be something which tracks line information.
If it's used, it's either included somewhere else that allows it to be used or we aren't using it, in any case, including it here isn't necessary until it fails to compile, which is obviously not the case (thanks travis for making verification of compilation trivial).