make ocl module compile on VS2012
Fixed visualization by choosing the color appropriate to the detection

Fixed visualization by choosing the color appropriate to the detection
score.
Previously the example showed all detections with the same color
disregarding the confidence. This led to the impression that the object
detection did not work at all because there are many detections with low
confidences.

PR to master was
https://github.com/Itseez/opencv/pull/320
Merge pull request #317 from vpisarev:c2cpp_refactor_imgproc
Merge pull request #321 from apavlenko:warp_sanity_check
Fix debug build of Java warppers
Merge pull request #330 from sromberg:2.4
fixed broken indentation
Merge pull request #331 from taka-no-me:fix_java_debug
Fix ocl build warnings
Merge pull request #332 from taka-no-me:fix_ocl_warnings
Merge pull request #305 from stephenfalken:2.4
Docs: Fix invalid conversion format in example (CV_BGR2GREY -> CV_BGR2GRAY)
Merge pull request #334 from asmaloney:2.4
Merge pull request #327 from bitwangyaoyao:2.4_vs2012
Merge pull request #325 from bitwangyaoyao:2.4_fixcanny
Merge pull request #324 from bitwangyaoyao:2.4_cvtcolor
Fixed a formula to calculate the relative error
Merge pull request #336 from ivan-korolev:fix_relative_error_formula
Find OpenCL in AMD APP SDK
Fix OpenCL build warnings