Ugly workaround for MinGW newline madness