Misc fixes and cleanups
Merge branch 'nat' of github.com:mozilla/shumway into nat