fix compilation error with some versions of node-0.9
Merge pull request #49 from onddo/node9-cast-fix

Fix compilation error with some versions of node-0.9