configure: changed AC_PROG_LIBTOOL order to fix disabling shared libs