add libwapiti support