replaced with size_t, #ifdefs and QString::fromLatin1(). Qt5 is so much nicer than Qt4...