src_ext: patch dose to be osx/bsd compatible

https://github.com/ocaml/opam/issues/1078