Fix linkage1 test which fails due to --as-needed