Addongui: sync lib with XBMC

Sync to https://github.com/xbmc/xbmc/pull/1816