fix for CUDA 6.0 on OS X Mavericks, thanks to Marcel Ruegenberg for working this out with me