Port changes from Bug 985252/Bug 1040831 to im, fix MSVC100.DLL not found errors. rs=bustage-fix a=im-only