Build fixes for CUDA 6.5