C++/TCPSocket: set thread stacksize to optimze memory usage