CppEditor: Compile fix for Qt4

Change-Id: If4a680bdd00c566661232ffb63b1573d8826a493
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Qbs: Mark the plain C and plain C++ project as console applications

Mark the qbs flavors of the plain C and the plain C++ project as
console applications.

Task-number: QTCREATORBUG-10815
Change-Id: Ic143ffe4026a97d0d27e0a85e62724b26e0ea5ce
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Device support: Fix device application runner for the "early exit" case.

If the state is Inactive when calling setFinished(), the finished()
signal will not be emitted and the run control will never finish.

Change-Id: I0c29138c31205cf43472d42821fd1a6af93cc1ac
Reviewed-by: hjk <hjk121@nokiamail.com>
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>