Making the torrent and HTTP classes cross-platform.