Fix compilation with latest rustc master

- Freeze is gone, but that's ok because Rc doesn't use it anymore.
- Indexes must now be uint.
- Struct fields are private by default.