libanalyze: update to new api