Added the -DQT_NO_CAST_FROM_ASCII and -DQT_NO_KEYWORDS definitions and made the necessary changes.
I've added these two definitions so that the code is consistent with KDE-Telepathy code base.