fixing compiler errors
making CudaDevicePointer's members private