Fix up configure.ac checks