fixed CUDA compile issues