Replace manual HAVE_* definition for sqlite by discovered one to help portability
Properly bundle the libelf m4 files into the distributed archive