Allow running katarakt --help and katarakt --version on headless systems
Do not initialise the QApplication object before the command-line
arguments have been processed.
This allows distribution packagers to run e.g. katarakt --version as a
minimal smoke test in their build pipeline.
Moreover, add missing .gitignore entries and fix a compiler warning.