Fixed crash in QCoreApplication::applicationFilePath

QCoreApplication keeps pointers to argv and argc so they better be static.