Use size_t/ptrdiff_t instead of long types in OpenCL code

NVIDIA doesn't seem to support longs.