Updates for node v0.10 compatibility.