elfutils: fix compilation with musl

this gets rid of tons of incompatible gnu-isms.

Signed-off-by: Steven Barth <steven@midlink.org>


@luizluca please review.