Make code OpenCL 1.0 compliant