fix autotools warnings, errors, and other issues
This should have gone in the previous commit