Fix problem with getting system memory on Windows.

[1650]