Fix travis compilation with osx+qt5

Homebrew currently installs qt 5.4.0
Merge pull request #503 from ctrlaltca/travis_osx_qt5

Fix travis compilation with osx+qt5