Make compatible with CRuby 2.1

It is quite safe to assume that during entire 2.x version lifecycle
  these patches would be needed
Merge pull request #5 from 9d4psq2hs4/bug/cruby_2.1

Make gem compatible with CRuby 2.1