fix compile of openssl on macosx and iphone targets