travis: only install custom libcurl on trusty (cherry picked from commit c582fa4eb6bee7880f04080aa80357cca406e448)