modified configure.ac and add libraries.