[qtcontacts-sqlite] Allow building as Qt5 QtPim contacts backend

Previously, this backend only worked with Qt4 as a QtMobility backend.
This commit adds ifdefs so that it works as a QtPim contacts backend
also.