fix nonfree module compilation without CUDA
Merge pull request #2301 from jet47:fix-nonfree-build