Guard malloc include for scrypt on Apple
Find CUDA correctly for OS X