Updates to fix compilation for node.js v0.10

Hi,
I made the addon compatible to Node.js v0.10.
It's basically what you find in the Node.js documentation for addons nowadays.

Cheers
Semmel