Prevent pulling in stdint.h not to break largefile support on 32 bit linux.

Thanks to James Le Cuirot for reporting.
Fix all -Wall warnings