Fix "unknown type name" errors.