Several unrelated fixes

1) Added include directive to ldap block. Useful for sharing configuration
   between multiple servers or separating permissions from main config.

2) Fixed authentication process. It was possible to log in for anyone in some
   cases when satisfy is any (e.g. when only require user lines are specified).

3) Fixed linking flags on Solaris.

4) Fixed use of event handlers with SSL. SSL module in nginx removes our event
   handlers. Epoll (which is default on linux) however, behaves substantially
   different with respect to event handlers compared to other polling modules
   (e.g. select or poll). It keeps the handlers for the lifetime of connection
   and doesn't remove them when instructed to. This affects mostly other OSes
   where epoll is not default, but could also affect Linux when other polling
   module is used for some reason.