Fix compilation issues for Windows build.