lib: fix node v0.8.x compatibility