Fix nvcc warnings on MSVC
There is a strange nvcc warning in CUDA 7.5 that sometimes happens on MSVC that causes it to emit a warning for an undefined method that is clearly defined. The CUDA development team is aware of the problem and is going to fix it, but these changes will work around the problem for now.