Compatibility with OSX 10.10
Compatibility with OpenSSL < 1.0.1
Compatibility the Makefile with OSX 10.10
Fix segmentation fault on exit