create compat header file for compat directives