Compilation fixes for Windows.