bugfix: compatibility of node 0.10.x (fixed #16)

Test OK on node v0.10.3 and v0.8.22