libtorrent: use libstdc++ if compiling with clang on mavericks, fixes #23483

Not sure if it's the correct approach, it seems this was also done for the mongodb formula. @mikemcquaid said to kick upstream, but I'm not sure where the fix should go.

I'm happy to work on finding a solution. Let me know. Thanks!