Truncate data from response in report_slave_id to new max arg (closes #167)

Change API of function for libmodbus v3.2.0
Conditional include of socket.h or winsock2 in tests (closes #169)

Thanks to MarjanTomas.