Use more modern Ruby API.
* Fix build with Ruby 2.1.1.
* Add LICENSE. * Remove default value of GEM_BUILD. * Add patch to support both ruby18 and ruby19. No functional change.