Fix git building and qt deps in travis