qtbrowser.pro: correct checks and differentiate bwteen Qt4 and Qt5

defines have (partially) changed between Qt versions