fix include endian.h

I have a problem including endian.h. 
May this pull request fix the problem?