Qt: some work towards upgrading to Qt 5.4 (#513) [ci skip].

This updates our TRAVIS-CI script, which shouldn’t be executed since it
requires using Qt 5.4 while neither of them is currently available on
our Linux and OS X targets.
Some minor cleaning up [ci skip].