fix cudabgsegm module compilation
Merge pull request #3024 from jet47:fix-cudabgsegm-compilation