Fixes to build gem on ruby 2.0

waiting for official jeweler, but this at least makes "rake build" work on ruby 2.0 for now