Build fixes for CUDA 6.5
Merge pull request #2975 from asmorkalov:ocv_cuda_6.5_fix