replaced cutils.h from CUDA 4.x and its functions with new headers and functions from Cuda 5.x