Rework this to auto generate the compat directories using a templateand the information from compat/archdirs.mk. Also add suport MKCOMPATTESTSand process the NetBSD.dist.tests to generate appropriate compat directories.