Fix issues with cuda 6+ on mac and cmake 3.0.