fix for osx10.7 deprecated function in openssl