Fix the build of the gold plugin.

I did the previous patch on OS X and didn't noticed the issue.
Test 221067 in a fixed-target test so as not to fail on targets with different DWARF encodings