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

defines have (partially) changed between Qt versions