Fix lib to work on node v0.8