Added ability to disable cuda support even if nvcc present
Corrected value of enum to fix bit masking