Add target-dependent versions of addAttribute/removeAttribute to AttrBuilder.