Moved to node-gyp and now works on node v0.8.x

Tested on OS X Mountain Lion and Ubuntu Precise.