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

Some distros provides libssl without openssl.pc.