Makefile and configure that actually uses the LDFLAGS