Fixes two heap corruptions in the corlib tests on Windows