Modifying configure.ac to check libaries