Remove workarounds for cross-compiling.  Search for ar and ranlib.

Use the methods that autoconf gives us to find ar/ranlib, rather than trying to
guess based on the compiler used.
Merge branch 'patch/cross-compile-ar' of github.com:asterisk/pjproject