[libcontacts] Fix qt4 build