compile static library