Minor tweaks to common OpenCL code.