Update package dependencies

Update dependencies and fix issues that propped up.