Resolve package dependencies