cmake: Remove boilerplate from HAVE_SSL check