Fix handling of --with-libgcrypt.