Update dependencies and tidy warnings