fix build issue with imlib2