Generate header function prototypes from .c
Improve const-correctness