[NVCC] Fixes to allow switching compilers when HAS_CUDA:=true