Makefile modified to make CUDA optional