change mktime and mkweek to xmktime and xmkweek
add time libary, not complete
fix abort warnning
enable png write macro
fix byteorder.h include
ssize.h
fix locale lib
fix luaconf.h, remove some define