ported to Qt 5

I've just successfully ported the code to Qt 5 (from my mac), and qmake, to improve portability.  Please have a look and make sure it also runs on Linux (and Windows) Also, I have replaced the QChar::toAscii to QChar::toLatin1.  I am sure that this is the correct replacement, but can you please check it out?