fix os x build with CUDA 6.0
Merge pull request #15 from szagoruyko/master

fix os x build with CUDA 6.0