Updated to compile with newest version of Rust.

Old ~[] vectors were removed.
Also io::print{ln}() was replaced by print{ln}!(), and several uses of format!() were removed.