Fix compilation for older OpenSSL versions.

For instance OpenSSL 0.9.7 does not have SSL_set_tlsext_host_name.

Also add the missing EVENT__DISABLE_SAMPLES CMake option.
Merge pull request #108 from JoakimSoderberg/minor_issues

Fix compilation for older OpenSSL versions.