fixed repeated network command receiving on SOCKET_TIMEOUT

removed warning-generating defines

removed some redundant includes