Add a space after -lpcap, and add -lcudart if found/used.