Compat with node 0.6 and 0.8