setup static library