Fix some of the things that break compilation on Windows.