title: Can't install thrift gem on OS X El Capitan
body: <p>Trying to install thift gem after OSX El Capitan upgrade:</p>
  
  <pre><code>    $ gem install thrift
      Building native extensions.  This could take a while...
      ERROR:  Error installing thrift:
          ERROR: Failed to build gem native extension.
  
          /Users/foo/.rvm/rubies/ruby-2.1.4/bin/ruby -r ./siteconf20160402-32256-7dzqel.rb extconf.rb
      checking for strlcpy() in string.h... yes
      creating Makefile
  
      make "DESTDIR=" clean
  
      make "DESTDIR="
      compiling binary_protocol_accelerated.c
      compiling bytes.c
      compiling compact_protocol.c
      compact_protocol.c:442:41: error: shifting a negative signed value is undefined [-Werror,-Wshift-negative-value]
          rb_exc_raise(get_protocol_exception(INT2FIX(-1), rb_str_new2(buf)));
                                              ^~~~~~~~~~~
  </code></pre>
  
  <p>Compilation fails with
  compact_protocol.c:442:41: error: shifting a negative signed value is undefined [-Werror,-Wshift-negative-value]</p>