qtbrowser.pro: improve checks and cleanup

the checks are now based on Qt's configuration