Updated compile_file to generate header files in addition to C code files.