port to node-pre-gyp