bugfix: make it compile in windows
feature: read the SayMsgSize from a parameter