Added OSX fixes from http://atomton.roon.io/compiling-cudaminer-on-os-x-10-9