[libqtsparql] Use moc workaround to share interface headers

moc can be tricked into processing Q_INTERFACES declarations for
both qt4 and qt5 in one file.