Made CUDA run on Mac OS