fixed build for Qt4 and Qt5.x < 5.2