Fixes for building CUDA on OSX Mavericks.