elfutils: fix compilation with musl

this gets rid of tons of incompatible gnu-isms.

Signed-off-by: Steven Barth <steven@midlink.org>
Merge pull request #681 from openwrt/elfutils-musl

elfutils: fix compilation with musl