Fixed compiler warnings for latest Rust