fix r2 for ocamlbuild on cygwin cannot find ocamlfind

use Sys.win32 and Sys.cygwin