Inherit AR,RANLIB from environment and pass it to lua

Fixes:
https://bugs.gentoo.org/show_bug.cgi?id=467172
https://bugs.gentoo.org/show_bug.cgi?id=467174