fix nonfree module compilation without CUDA