kwindowsystem: Use "C style" number parsing for window id
Allows to pass a string with e.g "0x" or "0b" prefix.
Lifted from kdialog which allows to do this for its --attach
argument.
Now I can just pass its QCommandLineOption
value verbatim to KWindowSystem::setMainWindow
.