Rebuild library