Fix building with Qt 4.7
Travis: Build v1.8 branch