Fix cuda link on non OSX machines