fixed problems with compatibility with Shan Chen and old CUDA (no printf or errexit)
Merge pull request #120 from ohickey/fixed_pull_request

fixed problems with compatibility with Shan Chen and old CUDA (no printf...