Fix thrift HEAD build

Newer versions of thrift require >= Bison 2.5 but Mavericks has 2.3. It
also requires an updated OpenSSL library so include that too.