It fails because it cannot link with OpenSSL. One possible solution is described [here](https://github.com/TooTallNate/node-gyp/wiki/Linking-to-OpenSSL).