Remove usage of the ocaml-re library as it's not thread safe

Signed-off-by: Akshay <akshay.ramani@citrix.com>