- add const declarations
- improve compilation with --std=c99 -pedantic