Add support for providing dictionaries with Windows builds.
Fix build errors on Windows.