Don't use Hash#to_h for ruby 1.9.3