Cleaned up warnings and compile errors for Rust nightly