Fix for Mac OpenCL Compatability

OpenCL on Mac seems to only allow passing pointers instead of passing arrays.