client ssl connection added.
This requires a SSL_CTX and must be set by the user
There's no libdl on FreeBSD.
FreeBSD handles the POSIX_C_SOURCE definition very strictly - strncmp() and
a lot of other stuff isn't defined in the 2001 standards.  Thus, the functions
aren't declared when you include the library headers.

So for now don't define it; later on it may be worth figuring out which
particular standard the project is coding to and define that.
Merge pull request #106 from erikarn/freebsd-develop

There's no libdl on FreeBSD.
v1.2.7, see ChangeLog for details
Merge branch 'release/1.2.7' into develop
Merge branch 'develop' of github.com:ellzey/libevhtp into develop
v1.2.8 see ChangeLog for details
Merge branch 'release/1.2.8' into develop
Remove locks for evthr pipe read/write
Accept upper-case "Chunked" in addition to "chunked" for transfer encoding.

Certain clients (particularly Apple's Finder) specify "Chunked" (upper-case)
instead of "chunked" as their desired transfer encoding.

Signed-off-by: Mark Ellzey <socket@gmail.com>
[htparse] Added length checks for various header values

- In some cases, the string comparison functions were not being checked for
  proper length, which could result in reading into garbage data (not past the
  actual buffer end, just the potential of reading a few bytes of a previous loop.

  This should also boost performance a tiny bit as we make sure of things like
  "Connection" is actually 10 bytes before an attempt to do a compare.
Fix up some compiler warnings.
Cleanup
[evthr] re-enable the pipe recv/send locking
Use snprintf for resp hdrs, fallback to evbuffer_add_printf

Since evbuffer_add_printf() adds several steps to the evbuffer additions, we
first attempt to use a small stack buffer and snprintf to fill in the response
haeders, and if it fits, we just simply execute evbuffer_add().

If the snprintf fails (not enough space, for some reason), it will fallback to
the original evbuffer_add_printf()
status_code_to_str no longer uses RB lookups

I don't know why I decided to use RB lookups for status code -> string, it's
just overhead that isn't needed. Swapped it out for a more simple switch/case
method.
Don't call bufferevent_set_timeouts read/write NULL
add 'libdir' support

Signed-off-by: Mark Ellzey <socket@gmail.com>
Add INCLUDE_INSTALL_DIR support