Install libqes in travis CI

Also try setting up caching of contrib stuff (zlib, libqes).