Use nvcc for linking

This updates https://github.com/cudamat/cudamat/pull/31 to use nvcc for linking, so the libraries do not have to be collected from LD_LIBRARY_PATH. Also it allows to specify custom nvcc flags via the `NVCC_FLAGS` environment variable.