Build libraries