fix FTBFS in i386

use the right type for printf considering bit size
size_t and off_t usually map to long in 64bit
fix FTBFS when UGLY_GETADDRINFO_WORKAROUND=1
missing license header
make zlib optional
add CPPFLAGS to build logic
Revert "ribs2: fix FTBFS in i386"
add file_writer_attachfd
file_writer align buffer size
clean 32bit support
json callback cleanup
detect dirty changelog
avoid mysql_helper crash
add ringfile_reset