Make compatible with Node >= 0.6.2