PvAPI support on Windows with MinGW (PR #1038 applied to the branch 2.4)
Rename PVAPI_DECLARATIONS to PVAPI_DEFINITIONS
bugfix #3121: corrected calculation of blue channel index
API restricted on WinRT partially removed from core.

Additional CMAKE flag WITH_WINRT added.
TLS calls on WinRT replaced on variables with C++11 "thread" attribute.
WinRT API Certification fixes for core and contrib.
compare cv::gpu::calcHist with cv::calcHist
rewrite histEven test
optimized version of histEven for CV_8UC1
use NPP version for Fermi
Merge pull request #1212 from jet47:gpu-calc-hist
Warning and review notes fixes.

WITH_WINRT -> ENABLE_WINRT_MODE;
Some temporary char* replaced with Ptr<char>;
Build fix for regular WIN32;
Windows Platform SDK and MSVC search added to cmake;
Warinig fixes.
Added sample links in documentation for python2, ocl and gpu
Merge pull request #1205 from asmorkalov:winrt_api_cert_fix
Merge pull request #1214 from StevenPuttemans:feature_3169_others
NEON instruction set enabled for WIN32 on ARM by default.
Merge pull request #1219 from asmorkalov:winrt_neon
Difference in method definition and declaration fixed (Bug #3189).
Merge pull request #1222 from philippefoubert:branch_2.4_pvapi
Merge pull request #1220 from asmorkalov:msmf_sizet_fix