Fix duplicate -stdlib flags in cxxld mode

When the cc wrapper is in cxxld mode, -stdlib= is added by both cxxflags
and ldflags, but they are never used separately, so this results in
duplicate flags.