use the code from mapbox/node-pre-gyp#79