Support Ruby 2.2

Fix for #33.