Rust 0.8 compat

This ports rust-zmq to Rust 0.8.