When the X11 option is off, there are still things in the Imlib2.h header that uses X11, fix this by removing those bits when building without X11. PR: 224354 Submitted by: Dominik Honnef