Remove deprecated build flags