configure.ac: Clearly mark required and optional libs.