Adjustments for Linux, MacOSX; using qsingleapp to allow only one process instance to run.