Also added a patch to fix compilation without deprecated OpenSSL APIs. Minor Makefile cleanups. Signed-off-by: Rosen Penev <rosenp@gmail.com>