mac: Use correct bundle version

Backport from master
[OS X] Set the Info.plist bundle name to KDevelop and the Info String to the longer string.
Also disable support for automatic termination in the Info.plist.
OS X:
* additional protection against App Nap and automaticTermination
* really set the BundleDisplayName
* generate an application icon resource

REVIEW: 121394
Avoid setting CMake variables globally that also exist as target-specific.
Move Q_DECLARE_OPERATORS_FOR_FLAGS out of namespaces

Having the macro expanded while not in the global namespace messes with the
precedence rules of operator| in a way that prevents the QFlags mechanism
from working correctly.

REVIEW: 121627
gdb: adjust DebugSession for the interface cleanup in kdevplatform

REVIEW: 121617
gdb: DebugSession: cleanup removed methods
Merge remote-tracking branch 'origin/4.7'

Conflicts:
	app/CMakeLists.txt
	app/main.cpp
ninjabuilder: Fix access to destructed member

'm_signal' could be invalid at that point already (~NinjaJob already
being run).

TODO: This is actually a bug in ~ExecuteCompositeJob, just blindly
deleting its subjobs instead of killing them cleanly. Investigate.

Trace:
4  0x00007ffff5917147 in qt_assert (assertion=0x7fffcd9e3b76
"!m_signal.isEmpty()", file=0x7fffcd9e3b18
"/home/krf/devel/src/kf5/extragear/kdevelop/kdevelop/projectbuilders/ninjabuilder/ninjajob.cpp",
line=132) at
/home/krf/devel/src/qt5/qtbase/src/corelib/global/qglobal.cpp:2810
5  0x00007fffcd9d9476 in NinjaJob::emitProjectBuilderSignal
(this=0x2a17690, job=0x2a17690) at
/home/krf/devel/src/kf5/extragear/kdevelop/kdevelop/projectbuilders/ninjabuilder/ninjajob.cpp:132

(snip)

12 0x00007ffff6e9cd62 in KJob::finished (this=0x2a17690, _t1=0x2a17690)
at src/lib/moc_kjob.cpp:527
13 0x00007ffff6e9adbc in KJob::~KJob (this=0x2a17690,
__in_chrg=<optimized out>) at
/home/krf/devel/src/kf5/frameworks/kcoreaddons/src/lib/jobs/kjob.cpp:59
14 0x00007ffff3e71072 in KDevelop::OutputJob::~OutputJob
(this=0x2a17690, __in_chrg=<optimized out>) at
/home/krf/devel/src/kf5/extragear/kdevelop/kdevplatform/outputview/outputjob.h:37
15 0x00007fffee47f420 in KDevelop::OutputExecuteJob::~OutputExecuteJob
(this=0x2a17690, __in_chrg=<optimized out>) at
/home/krf/devel/src/kf5/extragear/kdevelop/kdevplatform/outputview/outputexecutejob
.cpp:98
16 0x00007fffcd9e38da in NinjaJob::~NinjaJob (this=0x2a17690,
__in_chrg=<optimized out>) at
projectbuilders/ninjabuilder/../../../../../../../src/kf5/extragear/kdevelop/kdevelop/projectbuilders/ninjabu
ilder/ninjajob.h:36
17 0x00007fffcd9e390a in NinjaJob::~NinjaJob (this=0x2a17690,
__in_chrg=<optimized out>) at
projectbuilders/ninjabuilder/../../../../../../../src/kf5/extragear/kdevelop/kdevelop/projectbuilders/ninjabu
ilder/ninjajob.h:36
18 0x00007ffff5c09c60 in QObjectPrivate::deleteChildren
(this=0x2a97ec0) at
/home/krf/devel/src/qt5/qtbase/src/corelib/kernel/qobject.cpp:1950
19 0x00007ffff5c08155 in QObject::~QObject (this=0xcd9790,
__in_chrg=<optimized out>) at
/home/krf/devel/src/qt5/qtbase/src/corelib/kernel/qobject.cpp:1030
20 0x00007ffff6e9ae68 in KJob::~KJob (this=0xcd9790,
__in_chrg=<optimized out>) at
/home/krf/devel/src/kf5/frameworks/kcoreaddons/src/lib/jobs/kjob.cpp:56
21 0x00007ffff6e99268 in KCompositeJob::~KCompositeJob (this=0xcd9790,
__in_chrg=<optimized out>) at
/home/krf/devel/src/kf5/frameworks/kcoreaddons/src/lib/jobs/kcompositejob.cpp:41
22 0x00007ffff7f7ca92 in
KDevelop::ExecuteCompositeJob::~ExecuteCompositeJob (this=0xcd9790,
__in_chrg=<optimized out>) at
/home/krf/devel/src/kf5/extragear/kdevelop/kdevplatform/util/executecompositej
ob.cpp:44