default project doesn't build (mac os yosemite)

I get the following error when trying to build default CUDA project in Nsight.

ld: -rpath can only be used when targeting Mac OS X 10.5 or later

Somehow linker reads os version incorrectly (< 10.5 as opposed to 10.10). Any ideas how to fix this?