Use QX11Info::nextStartupId instead of KStartupInfo::startupId
QApplication constructor clears the startupId data, so it isn't available when KonqApplication::performStart is called.
I also deleted a version check for KWindowSystem
greater than 5.62 as Konqueror requires KF 5.72 and replaced a deprecated method call.