Make ocaml-sha build on OS X

This is a simple patch to get the C parts of the package building under Darwin, which doesn't have `endian.h`.