compat_types.py modified to support struct interface def."