Workaround a LLVM/Clang 3.3 bug.

The LLVM/Clang 3.3 has a bug when compile a cl kernel with
assignment of a scalar to a vector data type. This patch
could work around this bug.

Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
Fix reading of 16-bit TIFF images on big endian host.

Use correct integer types for arguments to TIFFGetField to avoid corruption
of values and failed loads of TIFF file when using cv::imread().

Added test where both big and little endian TIFF files are read using imread().

Fixed build of 3rdparty libtiff on big endian hosts.

Reduced memory required during decode_tile16384x16384 test by not converting
large grayscale test image to color image during read.
Fix Windows build of grfmt_tiff.cpp by using libtiff's integer types.
enabled OpenGL on MacOSX
Merge pull request #2318 from gongzg:2.4
Fix cmake detection of build platform endianness

Improve comments to indicate actual usage of WORDS_BIGENDIAN where
it is tested with #ifdef rather than #if
Application pause/resume fix for Android sample NativeActivity.
increase epsilon for AlphaComp sanity test for integer input
temporary disable perf test for StereoBeliefPropagation
Merge pull request #2331 from asmorkalov:android_native_activity_finish
Dead code removed as this cannot be null in Java.
Merge pull request #2332 from jet47:gpu-fixes
Merge pull request #2333 from asmorkalov:java_dead_code_fix
some more fixes
Fix build of libtiff on big endian host due to defined but empty WORDS_BIGENDIAN macro
temporary disable performance test for alphaComp function
Merge pull request #2329 from ilya-lavrenov:macosx_ogl
Merge pull request #2323 from stuart8c:issue2601_2.4_fix_16bit_tiff_reading_on_big_endian_host
Merge pull request #2335 from jet47:gpu-alphacomp-test
ocl: added SVM perf test