Add dependencies.
Deal with .file and .loc directives.
Fix up detection and use of libcudart.

Only build nvptx-none-run if -lcudart can be used.