fix 'the table of contents is empty' error when cross compiling for android by respecting RANLIB and AR settings from environment