Made some of the updates from #364 to get Flash working in IE again. Fixes #364. Fixes #309.