Fix endian.h include for FreeBSD
Merge remote-tracking branch 'upstream/master' into abm
simpler
wip