edit the C sources to conform to my style

also add a C header
and also try to fix build on Travis