headers.sh: Add support for non-GNU prototype

Some simplifications, notably in regexp
Automatic inclusion of stddef.h if necessary
Implement.sh: Conversion from a .h to a .c file