[ocaml] dirty fix to avoid segfault of server and GCS