Support for Node 0.11+

Tested with node 0.8, 0.10 @ 0.11.10 (0.11.11 has an [issue](https://github.com/joyent/node/pull/6992) )