Fix bug with language switching on Windows Vista and Windows 7