fix building unittest if build with cmake buildsystem and QT_NO_CAST_FROM_ASCII