Ocaml x11

New fix for issue #2922, building up on pr #2923, but makes x11 an option of ocaml.