Split f2c.h into f2c_types.h and f2c.h to separate the types from macros and definitions that would interfere with code that embeds it.
Move function types from f2c.h to f2c_types.h.in
Added extern 'C' statements to the headers.