Qt5 support for QtTesting master

Qt5 is built and packaged with the -reduce-relocations configure option as
default. This causes compilations to run with the -Bsymbolic-functions option,
which makes function pointer comparison ineffective, unless the -fPIE flag is
also supplied. Added Qt5 compile flags to support position independent code.

Replaced all instances QString::toAscii to QString::toLatin1