Fix for OpenCL on CPU with the Apple runtime (at least).