opencl kernel build fix for macosx