Centralize dependency on __FreeBSD_version into libelf.h, and generalizethe conditional inclusion of API/ELF features so that it works with NetBSDas well.