Compile with Rust 0.6

With these changes I'm able to compile with Rust 0.6. 

Unfortunately, the echo_server dies with what I assume is a bug in the standard library:

rust-0.6/src/rt/rust_exchange_alloc.cpp:23: void* rust_exchange_alloc::malloc(size_t): Assertion `value' failed.