support node v0.10.x by migrating to node-gyp build system