Fix build system ignoring AR.
https://bugs.gentoo.org/show_bug.cgi?id=464386