added optimization for Rust compiler
update for Go 1.4