OpenSSL, xml parsing and other minor fixes