support node 0.10

It works on node 0.10.

2 tests failed.