Fix a build error which manifests when building with CUDA < 5.
Merge pull request #917 from SpecLad:cuda-4-build