Upgrade dependencies.

xml package has become significantly more annoying to use, but whatever.