Get rid of all warnings and errors on Windows.

This increases msvc compatibility.
Yes, I believe all other functions operating on this buffer take its size into account, so that invariant ought to hold.