gmp: fix build on libc++ / clang on 10.9

Fixes #21259.
brew-test-bot: use REXML to write JUnit file.
detect_cxx_stdlibs: Only detect for dylibs

Fixes #23115.
Merge branch 'master' of git://github.com/mxcl/homebrew