sed: fix linkage against acl.

Due to --as-needed being defined before LDFLAGS, it was being ignored.

Close #672