Time casts and build fixes

- fix build warnings
- update docs generation (add to automake)
- fix one configure warning