Assume that malloc works.
Formatting.
Added mintty/msvcrt fix to events test.