prevent expansion of min and max on windows

Issue #355