Fix compiler issues on Windows.