Fix brew installation failure at Mac OS X 10.9

See: https://issues.apache.org/jira/browse/THRIFT-2219