build as a static library