Fail immediately when trying to compile with less than Qt 4.8

* Add a Qt version assertion to main.cpp
* Move main.cpp to the top of the sources list so it compiles early