Consolidate boilerplate in C headers