Require ostruct for mri <2.0 and JRuby