Fix libtasn1 version detection. Move tasn1 compat types to config.h