[conf] remove duplicates after setting all flags and sources