This is a patch for adding gyp support for running with node 0.6.x.
I also updated the tests to use the new bindings (build) path and to not use require.paths since that was removed.
I'm not sure how you want to handle 0.4.x support for your library.
You can manually test this by applying this pull request and:
npm install -g node-gyp
To complete the migration to node-gyp, the 'install' line (containing node-waf) should be removed from the package.json
fix tests to run on node 0.6.x with gyp