sync libtorrent to svn trunk code. and re-apply jack patch