Refactoring target for building libraries