Compatiblity fix for node.js >= 0.9.4