Update required autotools versions and add cast to warned comparisons