Switch to ocamlbuild, fix linking, fix SSL_peek and SSL_SESSION_free