fixed client.c to compile with mingw gcc 4.7.2 on windows