selectively enabled workaround for Windows