Fixes for building CUDA on OSX Mavericks. Hopefully it doesn't break
other versions/OS's (it shouldn't).