Fix warning message when compiling under Windows (MSBuild/VS).
Merge pull request #5303 from reaperrr/win-warnings

Fixes warning message when compiling under Windows (MSBuild/VS)