fix endian.h and byteswap.h problem
fix time_t undeclare problem
fix inline function not support in C99 mode