Update dependencies and fix build