Use CC rather than LD for linking

LDFLAGS is really meant to be passed to CC, not LD. The current code
fails e.g. with Debian's default LDFLAGS (-Wl,-z,relro).

Fix this by switching our Makefile to use CC for linking.