changes for compiling with CUDA 5.x