remove use of internally-deprecated OPENSSL_malloc/free
disable warnings about constant addresses in gcc 4.6 and later
do not include <openssl/modes.h>, modes_lcl.h already does