Fix HAVE_X11 check
Currently HAVE_X11 is defined to 'true', which doesn't do what we want
Instead ensure that it is defined to either 0 or 1
Currently HAVE_X11 is defined to 'true', which doesn't do what we want
Instead ensure that it is defined to either 0 or 1