Update node stable to v0.10.22

Also updated the xcode_emulation patch to gyp. It appears that there
were some minor changes that just needed fixing up.