fixed compilation with CUDA 4.2
Merge pull request #1027 from jet47:fix-cuda-4.2-build