Build a static library