Fix build when building on OSX, using non standard libssl, and a non standard version of clang/gcc (or a < OSX 10.9 version of clang/gcc)