Build fixes for CUDA 6.5
(cherry picked from commit 60a5ada4541e777bd2ad3fe0322180706351e58b)
Deb package build fix for CUDA 6.5 and newer.

(cherry picked from commit e650d87e470b2e6a8f87ad4dd81977748a136aee)
More accurate deb package build fix for CUDA 6.5 and newer.

(cherry picked from commit b2790973a32eb662c165a921afe03dbfd2c65269)