Fix ocl::bruteforcematcher crash on Intel OCL
fix compile warnings
Merge pull request #586 from bitwangyaoyao:2.4_FixBFMatcher