fix mac installation issues:

* add pyOpenSSL to requirements;
* use psutil for get_num_fds;
* handle cases when RLIMIT_NOFILE can't be increased to hard maximum