Fix for headless xbmc segfaults