Fixing cuda compiling in mac.