Fixed gpu module build (CUDA_CUDA_LIBRARY)

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