Use homebrew's openssl for IMAP

Right now we only use homebrew's openssl for the main configuration option, but not sub-options like imap.

Addresses #1215. Easier to just make a quick pull-request instead of trying to explain.