Added partial X11 support.