Fix compilation on kdevplatform 1.6

Fixes 2 of the 3 compilation problems on Ubuntu 14.04:
* KDevPlatform is not detected properly due to the way its detection logic is written
* Compilation breaks in mainwindow.cpp, due to KDevPlatform API changes
There is one more issue to fix:
* GPSimProcessor does not compile due to API changes in newer GPSim