Include config.h in all .c files

Need to be the first file since it may define large files support
and other options.
Fix warning if large file support is enabled