Make compatible with node v0.6.x