Adjust Makefile to use nvcc for linking.

Split apart the shared/global access to see where the
"can't determine global/local" warning came from.