Makefile: Add X11 library to linker.
Add option to use X11 to detect flag state.