LibElf: Build the error management code in libelf.This change makes some minor changes to get the error management code inlibelf to build on Linux and to build it into the library.
Get rid of GNU libelf and its autoconf nastiness and replaceit with FreeBSD's implementation