autotools: check for ssl.h if pkg-config failed

Some distros provide openssl libraries without openssl.