changed field types in some structures to equivalent unambiguous types

int -> int32_t
unsigned int -> uint32_t
unsigned chat -> uint8_t

Thus the implementation becomes not only unambiguous, but also more compliant with the [protocol specification](https://en.bitcoin.it/wiki/Protocol_specification).