Link tests against -liberty

which is redundant on some Linux distros and necessary on others.
Emit DWARF information when a test using it fails