Use library type when building dependencies