Fix ordering of LDFLAGS.