Fixed for latest Rust

'getopts' and treemap have been moved into different crates.

Also removed one glob import.