Static build fix - only attempt to link against libtasn1 if it's present


GnuTLS may be compiled without external libtasn1, so we shouldn't try
to link against it unless it's actually present.