Use the common build functions for the libssh2 script
OpenSSL build script improvements.