Link libstdc++ with -lpthread on IRIX 6 (PR target/47852)