Fixup build process.

Remove use of AR. Remove use of sed.