<sys/endian.h> for FreeBSD
Merge pull request #1 from dankogai/master

<endian.h> is <sys/endian.h> in FreeBSD