Resolved errors and warnings given by VS2010 for the CUDA backend