Fix building rust with nightly rust compiler.