 --- src/corelib/concurrent/qthreadpool.cpp.orig	2015-05-07 16:14:48.000000000 +0200
-+++ src/corelib/concurrent/qthreadpool.cpp	2016-03-17 15:57:50.000000000 +0100
-@@ -42,6 +42,7 @@
- #include "qthreadpool.h"
- #include "qthreadpool_p.h"
- #include "qelapsedtimer.h"
-+#include "QtCore/qcoreapplication.h"
++++ src/corelib/concurrent/qthreadpool.cpp	2016-03-18 11:00:22.000000000 +0100
+@@ -45,6 +45,8 @@
  
  #ifndef QT_NO_THREAD
  
-@@ -56,23 +57,6 @@
++static QScopedPointer<QThreadPool> gThreadPool(new QThreadPool());
++
+ QT_BEGIN_NAMESPACE
+ 
+ inline bool operator<(int priority, const QPair<QRunnable *, int> &p)
+@@ -56,23 +58,6 @@
      return priority < p.second;
  }
  

 
 #ifndef QT_NO_THREAD
 
@@ -54,7 +55,32 @@
 
 QT_MODULE(Core)
 

 { }
 
 /* \internal
@@ -240,13 +225,20 @@
     return activeThreadCount > maxThreadCount && (activeThreadCount - reservedThreads) > 1;
 }
 
