Add support for kernel 3.18

This patch fixes the build problem when building against kernel 3.18.

http://forum.kodi.tv/showthread.php?tid=211501&pid=1864124#pid1864124