ostruct syntax compatible with old ruby