remove deprecated crate definitions
string indexing no longer allowed in rust
Merge pull request #1 from kagia/rust0.11

Fixes for rust nightly