Node 0.11 fixes

Fixes a couple minor issues with node 0.11.