tools/libelf: use autoreconf to fix build failure on macOS with recent Xcode versions