Build as library