sqlite3 and the xerial JDBC may have different versions This is because we link against Debian-packaged sqlite3 lib, which may have a version number different from the one of the xerial JDBC.
patching the Makefiles for a Debian build - Indicating the paths of jni.h and jni_md.h in JAVA_HOME subdirs. - Linking against libsqlite3.so instead of getting sqlite3.c in the source archive downloaded from the Internet. - PAtching out the build of the OSInfo class as we don't need it.