Add qSingleApplication for Qt5, modify project file for compile in Qt4 and Qt5