Apple removed the OpenSSL header files in "El Capitan", making it hard to build OpenSSL-dependent libraries without modifying your system a little bit.
I find a solution for it https://solitum.net/openssl-os-x-el-capitan-and-brew/
$ cd /usr/local/include
$ ln -s ../opt/openssl/include/openssl