adjusted to compile in windows