Changing the code where we must.

http://grantammons.me/compiling-cudaminer-for-osx/