Previously ar and ranlib did not produce an error exit status in the case of a misisng file etc.
Bring over the error handling added by ELF Tool Chain after forking FreeBSD's ar.
Reported by: HardenedBSD IRC
Obtained from: elftoolchain ar
Sponsored by: The FreeBSD Foundation