Add support for locale-switching on Windows.