Add version constraints to dependencies