fixed JCUDA check for Mac