fix compatibility with node 0.10
Merge pull request #57 from poelzi/master

fix node 0.10 compatibility