Miscellaneous fixes

Fix some deprecations and warnings and ensure `Cargo.lock` is not checked into the repository.