Fixed build with rust-nightly

Make it to be built with rust-nightly.