THRIFT-664. rb: Ruby extension fails to build with Ruby 1.9.1 This change takes care of the 1.9 build issues and a few other c-extension niceties. Patch: Rajesh Malepati