Fixed netinet/in.h and inttypes.h compile errors.