added library checks to configure.ac