fixes two issues via patches to get knetwork compiling

kopete-4.10.4-kopete-linphonemediaengine.patch
----------------------------------------------
patch copied from here:
  https://bugs.kde.org/show_bug.cgi?id=318825

kopete-4.10.4-kopete-stun.patch
-------------------------------
  when compiling kopete/protocols/jabber/googletalk/libjingle/talk/session/phone/channelmanager.cc
  it would produce this error:

  kopete/protocols/jabber/googletalk/libjingle/talk/p2p/base/stunrequest.h:91:9: error: ‘StunMessageType’ does not name a type

  problem:
    this is cased by a cyclic use of stun.h, stunrequest.h and channelmanager.cc with the outcome,
    that kdenetwork couldn't be compiled since kopete fails to build.

  solution:
    move the StunMessageType enum into its own #ifndef
libspotify: add darwin library
fix bad "licence" names

Mostly what I merged from @lovek323.
Such errors can be easily checked by
  nix-env -f . -qa \* --meta --xml --drv-path --show-trace >/dev/null
qemu: Update to 1.5.1
spice-protocol: Update to 0.12.6
spice: Update to 0.12.3
qemu: Merge stuff from qemu-kvm
qemu: Merge qemu-kvm dependencies
qemu: Allow building only the x86 emulator
testRPMImage: Use x86_64 image
newsbeuter: add expression
newsbeuter: fix perl shebang
aria2: update to version 1.17.1 and add sqlite support

also add missing pkgconfig dependency, so that the buildInputs zlib,
openssl, and sqlite are properly found.
fix bash completion for perf
do not patch non-existent bash_completion for old kernels
plone: updating plone.app.discussion to 2.2.7
R: delete obsolete version 2.x from Nixpkgs
update xdg-utils to 1.1.0-rc1, fixes problems with generic xdg-open code
Update references to 'rLang' to the new name 'R'.
Merge pull request #717 from aristidb/master

xdg-utils update (fixes problems with xdg-open)