Add script to test libstdc++ static linking
fixup libstdc++.a linking test script [skip ci]