Check for libgcrypt and add its CFLAGS and LDFLAGS to the build
infrastructure.

This is needed for successful compilation when SSL support is enabled.