use sys/endian.h on FreeBSD

ocaml-sha doesn't compile on FreeBSD, this fixes it... we might be able to use ``sys/endian.h`` on all UNIX systems?