Update dependencies and minor fixes.