use Homebrew openssl if available

The only smell in this new code is that the function `has_broken_mac_openssl()` now has a chance to mutate the environment. I'm OK with this since it was an elegant way to fix the problem and avoid having to change code in Ruby 2.0.0-* formulas.

Fixes #343, references #367