Resolved problems compiling with CUDA