Fix ocl compilation error when using Intel OpenCL SDK.
Merge pull request #1210 from pengx17:2.4_ocl_surf_intel_fix