Add checking for libelf