fix build for no XMPP

This is a patch to fix the build for the case when the dev station does not have QXMPP setup.

Note that this update changes the API of GlobalServicesScriptingInterface, however the missing function doesn't appear to be used yet (or maybe it is only used by JS).