Detect win32 or pthread model in a mingw gcc build.

This commit allows VTK to be built either with win32 or pthread threads
based on what thread model the compiler was build for.

Change-Id: I46f22f900c837e4ad26be478730c888ebc86822b
Merge topic 'fix-mingw482qt532-build' into master

ecbf79e7 Detect win32 or pthread model in a mingw gcc build.
Do not cache deprecated PYTHON_INCLUDE_PATH.

This variable has been deprecated for years and its presence in
the cache can lead to frustration.  If a user removes the variable
PYTHON_INCLUDE_DIR from their cache (e.g. while trying to debug a
build), then cmake will use PYTHON_INCLUDE_PATH instead of searching
the system for Python.h like it should.  Removing PYTHON_INCLUDE_PATH
from the cache fixes this problem.

Change-Id: I23e5abf8655f31f19daa144489983d2adf206aad
Merge topic 'uncache-python-include-path' into master

a901d1e2 Do not cache deprecated PYTHON_INCLUDE_PATH.