make ocl module compile on VS2012
Merge pull request #327 from bitwangyaoyao:2.4_vs2012