Calculate examples' and lib's dependencies together