Add brg_endian.h

This is apparently needed on ARM.