libevent: add openssl, shared build, and multithread building

Fixes #379.

Signed-off-by: Timothy Gu <timothygu99@gmail.com>