copied files from https://github.com/lpradel/CUDDVC-2.5.0