Fix make distcheck and building on systems without libelf
Release 1.4.0.b1