Fix use of OpenStruct on Ruby 1.9.