Attempt to support both Qt4 and Qt5 in the same branch