Fix build issues on Windows using Visual Studio.