fixed warnings in openssl.c
and another bunch of compiler warnings fixed