Fixed build with opencl enabled Found-by: WJ Liu This reverts commit 0f2359b8. (cherry picked from commit ebd59d27)