Make compatible with node 0.10