Make changes in the code to support the upgrade to Node 0.10