Fix a build error which manifests when building with CUDA < 5.