Tests: update scripts for Travis CI

Fix build with Qt5 and Clang >= 3.4.
Tests: update scripts for Travis CI

Use latest cmake (>= 2.8.8) for build with Qt5.