Update to use node-gyp

updated to build using gyp on OS X and SmartOS