Fixes

While trying to use libevhtp for very minimalistic HTTP server I've found few small problems. This pull request fixes four issues:
- compilation without threads support
- compilation without regex support
- potential crash when using TCP_DEFER_ACCEPT
- missing SSL_CTX_free() call