Workaround for different location of endian.h in FreeBSD