Fix makefile: move LDFLAGS to the correct location.