Fix remaining problems with the OpenCL backend.