initial modernization of library and autoconf