Patch for Node 0.11.3
Added backwards compatibility through conditional compilation.
Merge pull request #302 from kkoopa/master

Patch for Node 0.11.3