Revert "Correctly handle header sizes."

This reverts commit 25d35efdd787569fc4d2f2439db0d3671b549987.
Fail on invalid header size.
Overflow checking.

Use calloc to do overflow checking where possible. Case e_phnum to
size_t before multiplying with e_phentsize to avoid overflow.