openssl: fix keypress requirement in apps on win32

Original source:

http://openssl.6102.n7.nabble.com/PATCH-s-client-Fix-keypress-requirement-with-redirected-input-on-Windows-td46787.html
gyp: build openssl-cli tool and use it in tests

fix #6663
Merge remote-tracking branch 'upstream/master'