Added to check for need to link libX11 explicity for XFlush().