Use BSD endian functions on CYGWIN