need to explicitly require 'ostruct' lib in ruby 1.9.3 and lower