Moved LDFLAGS to the end of command

Linkers are dumb.