fixed gpu module build on arm platform

links with CUDA driver library only if we use video encoding/decoding
Merge pull request #947 from jet47:fix-gpu-arm-build