erlang: support optional linking with brewed openssl + fix conflicting options