Optionally use x11 dependency.