sync with rogerwang/nw-gyp