Build libraries before vendoring them