libtorrent, rtorrent: build using libstdc++

This requires a private libsigc++, since that library is too widely
used to always build using libstdc++. Hopefully this is only a temporary
solution.

Fixes #23483.