CUDA compilation problems solved