[telepathy-qt] Fix build with Qt 5.2

Patch from Albert Astals Cid <albert.astals@canonical.com>
Bug: https://bugs.launchpad.net/bugs/1267835

Does not break building on Qt <5.2.