Fix gcc warnings when building for Windows.