fix static library build