Fixed Err with new Stream API and Node v0.10.5

Thanks to @pianomansam for the Diff
Merge pull request #36 from alexperezpaya/master

Fixed Err with Node 0.10.5 changes