Fixes for the new openssl on Windows

Includes a rewrite of openssl.gyp with portions from node.js