moved LDFLAGS to end of line so it works.