compilation fix for Yosemite

tmcdonell/cuda#18