OpenCL compile on OSX

These are small changes that make OpenCL to compile on OSX