Fixed compilation errors with latest Rust.

Added Zero trait to helpers since it's been removed from Rust.