Fix for new Streams 2 API in node.js 0.10 and greater