reworked the build system to build a static openssl if on OSX because openssl on OSX is deprecated