Don't regenerate the configuration headers if they don't change.
Added missing header files.
Sorted list of sources.
CUDA_NVCC_FLAGS is a list not a string.
Remove unused sources.