update build library flag