fixed bug in ocl::equalizeHist
Fixed a Wmissing-declarations warning when compiling with MinGW.
cmake: fix linker dependencies for opencv_java

Linker dependencies to all OpenCV modules are invalid.
We should not include other bindings in this list (like "opencv_python").
Merge pull request #1679 from ilya-lavrenov:ocl_equalizeHist
Merge pull request #1643 from alalek:cmake_fix_java_link_rules
Merge pull request #1682 from SpecLad:Wmissing-declarations