Makefile problem fixed. Now the linker uses cudart.