fix os x build with CUDA 6.0

tested on OS X 10.9