Fix errors with rust-nightly