Write header for generated files.