Require `ostruct` for Ruby 1.9.3
Fix faulty assertion in integration test
Rewrite `FileRefs` into `Extract`