Fix build errors on Linux with Qt5 vers less than Qt5.2

Building in a non-chroot environment with Ubuntu 14.04 or Ubuntu 13.10 and Qt5