Fixed endian.h check (thanks to paravoid)