Misc. fixes for node.js 0.10, npm 1.2.0 and Uglify.js