Autotool fixes

These changes allow the autoreconf step of building the Git tree run without warnings on a modern Linux system. I tested on Ubuntu Trusty (14.04) amd64.

These are the minimal fixes required to remove the warnings.