Make code compilable using clens

This is caused by a dependency on strtonum that should be removed as
this is not portable.
Add .gitignore