Fixed gpu module build on arm platform

Links with CUDA driver library only if we use video encoding/decoding.