Update configure.ac

Better compiler checks.