You need to disable the mechanism without the Mac OSX El Capitán roots:
- Download from Cmd-R
- Open terminal
- Type csrutil disable
- Reboot
On Mac, you need to install Xcode, and create a symlink for openssl comes with Xcode, i.e.
cd /usr/include; sudo ln -s /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-migrator/sdk/MacOSX.sdk/usr/include/openssl
source share