Fix compiling with opencl enabled but no opencl kernels.