Part of work for #212: Make GD source to be ready for Qt5.

Replaced deprecated to/fromAscii with to/fromLatin1
Updated to the latest qtsingleapplication, as part of fix for #212.

The sources are already updated to be compatible with Qt5.