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

I don't understand the 2 lines that you remove. Why it should not be a dependency anymore? Anyway, I'll merge now.