[bugfix,release] Do not try to add flags before adding the executable.