Fix Hash syntax to support Ruby 1.8.
Add Ruby 1.8 to the CI build matrix.