configure: Add an explicit check and option for nvcc