fix that current dev not compile with cuda 5.0

bug come in with #457
Merge pull request #474 from psychocoderHPC/fix-cuda50CompileProblem

fix compile with cuda 5.0