extract a portion of the ocamlgraph library and adding as a standalone in order to allow compilation for xen backend