fix newest Rust compiling errors (not rustdoc)