Add a few functions to read 16bits and 32bits integers that may be unaligned, both in host and network order.