add rules for building just library