build libraries into subdir "lib", patch leptonica build

All libraries go into a subdirectory "lib" (again) - for consistency as well as for a clean file system layout.

libk2pdfopt is patched so it does a tad bit more configuring in order to not pull in library dependencies for leptonica.