mozilla/togetherjs — pull request #1028 by cscott (2014-08-30 02:07:30+00:00)
Title: Misc github patches

Cherry-picked patches from github PRs, with some tweaks as needed.

Fixes #1010, #1013, #1017, #1018, #1022.