Fix definition of HAVE_X11
we check if HAVE_X11 is defined and not if it is equal to 1, so only define it when x11 is available instead of setting it to 0 when not available
we check if HAVE_X11 is defined and not if it is equal to 1, so only define it when x11 is available instead of setting it to 0 when not available