do not compile openssl on osx if --with-openssl-dir= was given, fix #1541