Beef up the testing of our 'ld' invocation on linux to cover static
linking. About to fix a bug here and there was no good test case.