Relicense to LGPLv3+ to be able to use gnulib printf-posix.
Add gnulib printf-posix.
Make it build.  Use gnulib libtool rules.