added <sys/endian.h> and <wchar.h>