update build flags