npm 2 loves node 0.8

All the changes necessary to get npm 2 working on node 0.8.