Fix build error when WITH_OPENCL is disabled.