updated to build using gyp on OS X and SmartOS