Well... It works. Unfortunately, I've moved from XBMC and Imlib2 to GTK+.