support building with Ruby 2.0/2.1