Judging by travis docs we could hook `before_install`, build and install two versions of libtorrent and then build two versions of qBt.