Allow sdktool to run in an elevated context
Allow sdktool to run in an elevated context

This fixes an issue with installation on Mac: We run sdktool with
'elevated' rights if we e.g. install in a global directory, forcing
the effective user id to be 0. However, since Qt 5.3.0 QCoreApplication
aborts if geteuid() != getuid().

Change-Id: I678f405fc0cb31dbf9c0487f674bb8dbe5e2e95e
Reviewed-by: Tobias Hunger <012f8d714267bccc9d4766fbeace9f175fcc70c4@digia.com>

AltarBeastiful/qt-creator,xianian/qt-creator,maui-packages/qt-creator,martyone/sailfish-qtcreator,kuba1/qtcreator,danimo/qt-creator,amyvmiwei/qt-creator,kuba1/qtcreator,maui-packages/qt-creator,farseerri/git_code,martyone/sailfish-qtcreator,martyone/sailfish-qtcreator,xianian/qt-creator,maui-packages/qt-creator,xianian/qt-creator,Distrotech/qtcreator,amyvmiwei/qt-creator,xianian/qt-creator,martyone/sailfish-qtcreator,kuba1/qtcreator,danimo/qt-creator,danimo/qt-creator,xianian/qt-creator,kuba1/qtcreator,farseerri/git_code,AltarBeastiful/qt-creator,amyvmiwei/qt-creator,amyvmiwei/qt-creator,martyone/sailfish-qtcreator,xianian/qt-creator,AltarBeastiful/qt-creator,amyvmiwei/qt-creator,amyvmiwei/qt-creator,kuba1/qtcreator,maui-packages/qt-creator,Distrotech/qtcreator,AltarBeastiful/qt-creator,maui-packages/qt-creator,danimo/qt-creator,martyone/sailfish-qtcreator,xianian/qt-creator,danimo/qt-creator,AltarBeastiful/qt-creator,Distrotech/qtcreator,amyvmiwei/qt-creator,kuba1/qtcreator,Distrotech/qtcreator,martyone/sailfish-qtcreator,farseerri/git_code,farseerri/git_code,martyone/sailfish-qtcreator,martyone/sailfish-qtcreator,kuba1/qtcreator,danimo/qt-creator,Distrotech/qtcreator,AltarBeastiful/qt-creator,amyvmiwei/qt-creator,Distrotech/qtcreator,maui-packages/qt-creator,farseerri/git_code,danimo/qt-creator,farseerri/git_code,xianian/qt-creator,danimo/qt-creator,kuba1/qtcreator,Distrotech/qtcreator,kuba1/qtcreator,xianian/qt-creator,AltarBeastiful/qt-creator,AltarBeastiful/qt-creator,maui-packages/qt-creator,farseerri/git_code,danimo/qt-creator,farseerri/git_code